<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../vue.js"></script>
    <style>

    </style>
</head>
<body>
<div id="box">
    <div :style="{backgroundColor:color}">hello </div>
    <div :style="styleObj">world </div>
</div>
</body>
<script>
    var obj = {
        data() {
            return {
                color:'red',
                styleObj:{
                    backgroundColor:'blue',
                    fontSize: '123px'
                }
            }
        },

    }
    var app = Vue.createApp(obj).mount("#box")
</script>
</html>